<template>
  <div class="list">商品列表 - {{ $route.query.id }}</div>
</template>

<script>
export default {
  mounted() {
    // $route 用于存放当前组件路由信息
    console.log(this.$route)
  }
}
</script>

<style lang="less" scoped>
.list {
  padding: 20px;
  min-height: 200px;
  background-color: yellowgreen;
}
</style>
